//
//  ViewController.m
//  UIStackViewDemo
//
//  Created by liaozhenming on 16/8/23.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    _stackView.spacing = 10.0;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear: animated];
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        
        NSLog(@"....%i",_stackView.axis);
        NSLog(@"....%i",_stackView.distribution);
        NSLog(@"....%i",_stackView.alignment);
        NSLog(@"....%f",_stackView.spacing);
    });
}

//@property(nonatomic) UILayoutConstraintAxis axis;
//
///* The layout of the arrangedSubviews along the axis
// */
//@property(nonatomic) UIStackViewDistribution distribution;
//
///* The layout of the arrangedSubviews transverse to the axis;
// e.g., leading/trailing edges in a vertical stack
// */
//@property(nonatomic) UIStackViewAlignment alignment;
//
///* Spacing between adjacent edges of arrangedSubviews.
// Used as a strict spacing for the Fill distributions, and
// as a minimum spacing for the EqualCentering and EqualSpacing
// distributions. Use negative values to allow overlap.
// */
//@property(nonatomic) CGFloat spacing;
@end
